<template>
  <div>
    <!-- <ul class="mui-table-view">
      <li class="mui-table-view-cell mui-media" v-for="item in newslist" :key="item.id">
        <router-link :to="'/home/newsinfo'+item.id">
          <img class="mui-media-object mui-pull-left" :src="item.img_url" />
          <div class="mui-media-body">
            <h1>{{item.title}}</h1>
            <p class="mui-ellipsis">
                <span>发表时间：{{item.add_time | dateFormat}}</span>
                <span>点击：{{item.click}}次</span>
            </p>
          </div>
        </router-link>
      </li>
    </ul>-->
    <ul class="mui-table-view">
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/newsinfo">
          <img class="mui-media-object mui-pull-left" src="https://p3.pstatp.com/list/190x124/pgc-image/RWq9jr26ENmdXq" alt="">
          <div class="mui-media-body">
            <h1>《狮子王》反派一上位，草原怎么就秃了？</h1>
            <p class="mui-ellipsis">
              <span>原创 中国日报 2019-07-21 15:15:02</span>
              <span>点击：0次</span>
            </p>
          </div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/newsinfo">
          <img class="mui-media-object mui-pull-left" src="https://p1.pstatp.com/list/190x124/pgc-image/RWT05tM9iFG2OA" alt="">
          <div class="mui-media-body">
            <h1>《睡眠时间“新国标”出炉！你，睡够了吗？</h1>
            <p class="mui-ellipsis">
              <span>2019-07-17 16:08</span>
              <span>点击：0次</span>
            </p>
          </div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/newsinfo">
          <img class="mui-media-object mui-pull-left" src="https://p3.pstatp.com/list/190x124/pgc-image/RUH9rk63nlkGD3" alt="">
          <div class="mui-media-body">
            <h1>开全天和开半天？实测告诉你夏天怎么开空调省电</h1>
            <p class="mui-ellipsis">
              <span>2019-07-17 16:08</span>
              <span>点击：0次</span>
            </p>
          </div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/newsinfo">
          <img class="mui-media-object mui-pull-left" src="https://p3.pstatp.com/list/190x124/pgc-image/07888fc2467345c184cf8615b276bc0a" alt="">
          <div class="mui-media-body">
            <h1>人类登月50年：为什么现在没有哪个国家再次登月了？</h1>
            <p class="mui-ellipsis">
              <span>原创 三联生活周刊 2019-07-20 15:23:09</span>
              <span>点击：0次</span>
            </p>
          </div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/newsinfo">
          <img class="mui-media-object mui-pull-left" src="https://p1.pstatp.com/list/190x124/pgc-image/RRAubdGDlPby3P" alt="">
          <div class="mui-media-body">
            <h1>吃西瓜，千万别用勺！理由只有一个</h1>
            <p class="mui-ellipsis">
              <span>2019-07-19 10:34</span>
              <span>点击：0次</span>
            </p>
          </div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/newsinfo">
          <img class="mui-media-object mui-pull-left" src="https://p1.pstatp.com/list/190x124/pgc-image/RWl53IOGnk4sTF" alt="">
          <div class="mui-media-body">
            <h1>生活 | 这5种主食吃下去，相当于“喝油”</h1>
            <p class="mui-ellipsis">
              <span>工人日报 2019-07-20 18:25:03</span>
              <span>点击：0次</span>
            </p>
          </div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/newsinfo">
          <img class="mui-media-object mui-pull-left" src="https://p3.pstatp.com/list/190x124/pgc-image/RWkdazHDudC7yQ" alt="">
          <div class="mui-media-body">
            <h1>坐火车时，乘务员为啥要"收走"卧铺票？真相来了</h1>
            <p class="mui-ellipsis">
              <span>北青网 2019-07-20 16:36:39</span>
              <span>点击：0次</span>
            </p>
          </div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/newsinfo">
          <img class="mui-media-object mui-pull-left" src="https://p1.pstatp.com/list/190x124/pgc-image/RWfpAp5FvGZqXq" alt="">
          <div class="mui-media-body">
            <h1>一个人内心强大的9个习惯</h1>
            <p class="mui-ellipsis">
              <span>工人日报 2019-07-19 20:50:37</span>
              <span>点击：0次</span>
            </p>
          </div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/newsinfo">
          <img class="mui-media-object mui-pull-left" src="https://p1.pstatp.com/list/190x124/pgc-image/RSOrSvbI6jTxVU" alt="">
          <div class="mui-media-body">
            <h1>为什么电梯里要放镜子？原因让你意想不到……</h1>
            <p class="mui-ellipsis">
              <span>中国经济网 2019-07-16 14:45:53</span>
              <span>点击：0次</span>
            </p>
          </div>
        </router-link>
      </li>
      <li class="mui-table-view-cell mui-media">
        <router-link to="/home/newsinfo">
          <img class="mui-media-object mui-pull-left" src="https://p1.pstatp.com/list/190x124/pgc-image/RT5ZXNgAdOxEim" alt="">
          <div class="mui-media-body">
            <h1>不懂拒绝，是一种病</h1>
            <p class="mui-ellipsis">
              <span>工人日报 2019-06-23 21:45:05</span>
              <span>点击：0次</span>
            </p>
          </div>
        </router-link>
      </li>
    </ul>
  </div>
</template>
<script>
import { Toast } from "mint-ui";
export default {
  data() {
    return {
      newslist: []
    };
  },
  created() {
    this.getNewsList();
  },
  methods: {
    // getNewsList(){
    //     this.$http.get('api/getnewslist').then(result =>{
    //         if(result.body.status===0){
    //             this.newslist=result.body.message;
    //         }else{
    //             Toast('获取新闻列表失败')
    //         }
    //     })
    // }
  }
};
</script>
<style lang="less" scoped>
.mui-table-view {
  li {
    
    img{
      height: 50px;
      width: 50px;
    }
    h1 {
      font-size: 14px;
      margin-bottom: 15px;
    }
  }
  .mui-ellipsis {
    font-size: 12px;
    color: #226aff;
    display: flex;
    justify-content: space-between;
  }
}
</style>
